package com.csun.cmny.provider.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


public class OldmanCheckIn implements Serializable {
    private Integer oldmanId;

    private Integer nursingLevel;

    private Integer oldType;

    private Integer setMealId;

    private BigDecimal setMealFee;

    private Integer bedItemId;

    private BigDecimal bedFee;

    private BigDecimal personalFee;

    private BigDecimal deviceFee;

    private BigDecimal shouldPaidFee;

    private BigDecimal actPaidFee;

    private BigDecimal deposit;

    private Integer status;

    private String checkInDate;

    private String leaveDate;

    private Integer prepaidCycle;

    private Integer homeId;

    private Integer valid;

    private Date createTime;

    private Date modifyTime;

    private Long modifier;

    private Integer bedId;

    private List<OldmanItem> oldmanItemList;

    private List<OldmanDevice> oldmanDeviceList;

    private static final long serialVersionUID = 1L;

    public Integer getOldmanId() {
        return oldmanId;
    }

    public void setOldmanId(Integer oldmanId) {
        this.oldmanId = oldmanId;
    }

    public Integer getNursingLevel() {
        return nursingLevel;
    }

    public void setNursingLevel(Integer nursingLevel) {
        this.nursingLevel = nursingLevel;
    }

    public Integer getOldType() {
        return oldType;
    }

    public void setOldType(Integer oldType) {
        this.oldType = oldType;
    }

    public Integer getSetMealId() {
        return setMealId;
    }

    public void setSetMealId(Integer setMealId) {
        this.setMealId = setMealId;
    }

    public BigDecimal getSetMealFee() {
        return setMealFee;
    }

    public Integer getBedItemId() { return  bedItemId; }

    public void setBedItemId(Integer bedItemId) { this.bedItemId = bedItemId; }

    public void setSetMealFee(BigDecimal setMealFee) {
        this.setMealFee = setMealFee;
    }

    public BigDecimal getBedFee() {
        return bedFee;
    }

    public void setBedFee(BigDecimal bedFee) {
        this.bedFee = bedFee;
    }

    public BigDecimal getPersonalFee() {
        return personalFee;
    }

    public void setPersonalFee(BigDecimal personalFee) {
        this.personalFee = personalFee;
    }

    public BigDecimal getDeviceFee() {
        return deviceFee;
    }

    public void setDeviceFee(BigDecimal deviceFee) {
        this.deviceFee = deviceFee;
    }

    public BigDecimal getShouldPaidFee() {
        return shouldPaidFee;
    }

    public void setShouldPaidFee(BigDecimal shouldPaidFee) {
        this.shouldPaidFee = shouldPaidFee;
    }

    public BigDecimal getActPaidFee() {
        return actPaidFee;
    }

    public void setActPaidFee(BigDecimal actPaidFee) {
        this.actPaidFee = actPaidFee;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCheckInDate() {
        return checkInDate;
    }

    public void setCheckInDate(String checkInDate) {
        this.checkInDate = checkInDate;
    }

    public String getLeaveDate() {
        return leaveDate;
    }

    public void setLeaveDate(String leaveDate) {
        this.leaveDate = leaveDate;
    }

    public Integer getPrepaidCycle() {
        return prepaidCycle;
    }

    public void setPrepaidCycle(Integer prepaidCycle) {
        this.prepaidCycle = prepaidCycle;
    }

    public Integer getHomeId() {
        return homeId;
    }

    public void setHomeId(Integer homeId) {
        this.homeId = homeId;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Long getModifier() {
        return modifier;
    }

    public void setModifier(Long modifier) {
        this.modifier = modifier;
    }

    public Integer getBedId() {
        return bedId;
    }

    public void setBedId(Integer bedId) {
        this.bedId = bedId;
    }

    public List<OldmanItem> getOldmanItemList() {
        return oldmanItemList;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public void setOldmanItemList(List<OldmanItem> oldmanItemList) {
        this.oldmanItemList = oldmanItemList;
    }

    public List<OldmanDevice> getOldmanDeviceList() {
        return oldmanDeviceList;
    }

    public void setOldmanDeviceList(List<OldmanDevice> oldmanDeviceList) {
        this.oldmanDeviceList = oldmanDeviceList;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OldmanCheckIn other = (OldmanCheckIn) that;
        return (this.getOldmanId() == null ? other.getOldmanId() == null : this.getOldmanId().equals(other.getOldmanId()))
            && (this.getNursingLevel() == null ? other.getNursingLevel() == null : this.getNursingLevel().equals(other.getNursingLevel()))
            && (this.getOldType() == null ? other.getOldType() == null : this.getOldType().equals(other.getOldType()))
            && (this.getSetMealId() == null ? other.getSetMealId() == null : this.getSetMealId().equals(other.getSetMealId()))
            && (this.getSetMealFee() == null ? other.getSetMealFee() == null : this.getSetMealFee().equals(other.getSetMealFee()))
            && (this.getBedFee() == null ? other.getBedFee() == null : this.getBedFee().equals(other.getBedFee()))
            && (this.getPersonalFee() == null ? other.getPersonalFee() == null : this.getPersonalFee().equals(other.getPersonalFee()))
            && (this.getDeviceFee() == null ? other.getDeviceFee() == null : this.getDeviceFee().equals(other.getDeviceFee()))
            && (this.getShouldPaidFee() == null ? other.getShouldPaidFee() == null : this.getShouldPaidFee().equals(other.getShouldPaidFee()))
            && (this.getActPaidFee() == null ? other.getActPaidFee() == null : this.getActPaidFee().equals(other.getActPaidFee()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCheckInDate() == null ? other.getCheckInDate() == null : this.getCheckInDate().equals(other.getCheckInDate()))
            && (this.getPrepaidCycle() == null ? other.getPrepaidCycle() == null : this.getPrepaidCycle().equals(other.getPrepaidCycle()))
            && (this.getHomeId() == null ? other.getHomeId() == null : this.getHomeId().equals(other.getHomeId()))
            && (this.getValid() == null ? other.getValid() == null : this.getValid().equals(other.getValid()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
            && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOldmanId() == null) ? 0 : getOldmanId().hashCode());
        result = prime * result + ((getNursingLevel() == null) ? 0 : getNursingLevel().hashCode());
        result = prime * result + ((getOldType() == null) ? 0 : getOldType().hashCode());
        result = prime * result + ((getSetMealId() == null) ? 0 : getSetMealId().hashCode());
        result = prime * result + ((getSetMealFee() == null) ? 0 : getSetMealFee().hashCode());
        result = prime * result + ((getBedFee() == null) ? 0 : getBedFee().hashCode());
        result = prime * result + ((getPersonalFee() == null) ? 0 : getPersonalFee().hashCode());
        result = prime * result + ((getDeviceFee() == null) ? 0 : getDeviceFee().hashCode());
        result = prime * result + ((getShouldPaidFee() == null) ? 0 : getShouldPaidFee().hashCode());
        result = prime * result + ((getActPaidFee() == null) ? 0 : getActPaidFee().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCheckInDate() == null) ? 0 : getCheckInDate().hashCode());
        result = prime * result + ((getPrepaidCycle() == null) ? 0 : getPrepaidCycle().hashCode());
        result = prime * result + ((getHomeId() == null) ? 0 : getHomeId().hashCode());
        result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", oldmanId=").append(oldmanId);
        sb.append(", nursingLevel=").append(nursingLevel);
        sb.append(", oldType=").append(oldType);
        sb.append(", setMealId=").append(setMealId);
        sb.append(", setMealFee=").append(setMealFee);
        sb.append(", bedFee=").append(bedFee);
        sb.append(", personalFee=").append(personalFee);
        sb.append(", deviceFee=").append(deviceFee);
        sb.append(", shouldPaidFee=").append(shouldPaidFee);
        sb.append(", actPaidFee=").append(actPaidFee);
        sb.append(", status=").append(status);
        sb.append(", checkInDate=").append(checkInDate);
        sb.append(", prepaidCycle=").append(prepaidCycle);
        sb.append(", homeId=").append(homeId);
        sb.append(", valid=").append(valid);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", modifier=").append(modifier);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}